package com.wwj.core.server.entity;

import com.wwj.framework.entity.BaseIdEntity;

import java.util.Date;

public class GameServer extends BaseIdEntity<Integer> {

    public static final int ONLINE = 1;
    public static final int OFFLINE = 0;

    private String serverName;
    private String ip;
    private Integer port;
    private Integer isOnline;
    private Date createTime;
    private Date updateTime;

    public GameServer() {
    }

    public GameServer(String serverName, String ip, Integer port) {
        this.serverName = serverName;
        this.ip = ip;
        this.port = port;
        this.isOnline = ONLINE;
    }

    public String getServerName() {
        return serverName;
    }

    public void setServerName(String serverName) {
        this.serverName = serverName;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public Integer getIsOnline() {
        return isOnline;
    }

    public void setIsOnline(Integer isOnline) {
        this.isOnline = isOnline;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
